package com.auxgroup.smarthome.inner.repo;

import com.auxgroup.smarthome.inner.entity.BaseFeatureEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by root on 17-7-31.
 */
public interface BaseFeatureEntityRepo extends JpaRepository<BaseFeatureEntity,String>{
    @Query(value="select * from base_feature order by sort",nativeQuery = true)
    List<BaseFeatureEntity> findAll();
}
